package com.yooohooo.designpattern.factory.abstr;

import com.yooohooo.designpattern.bean.headset.AppleHeadset;
import com.yooohooo.designpattern.bean.phone.ApplePhone;

/**
 * @ClassName: AppleFactory
 * @Description:
 * @author Yooo
 * @date 2017年6月20日 下午9:24:50
 * 
 */
public class AppleFactory implements Factory {
	public ApplePhone getPhone() {
		ApplePhone applePhone = new ApplePhone();
		applePhone.setBrand("Apple");
		applePhone.setOs("IOS");
		return applePhone;
	}

	public AppleHeadset getHeadset() {
		AppleHeadset appleHeadset = new AppleHeadset();
		appleHeadset.setBrand("Apple");
		return appleHeadset;
	}
}
